package com.consumer.controller;

import com.dubbo.api.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zy
 * @version 1.0
 * @date 2024/6/16 17:21
 * @description
 **/
@RestController
public class ConsumerController {

    @Resource
    private OrderService orderService;

    @GetMapping("/order")
    public String getOrder() {

        return orderService.getOrder();
    }


}
